<template>
	<view class= "content"></view>
</template>

<script>
	import questionsUtil from '../../questions/getQuestions.js'
	export default
	{
		onLoad(options) {
			var questions = [];   //问题
			var paperid = options.paperid;
			console.log(paperid)
			if(paperid > 0)//远程数据
			{
				
			}
			else				//本地数据
			{
				questions = questionsUtil.getQuestionsFromLocal()
				console.log("questions = "+JSON.stringify(questions))
				uni.redirectTo({
					url:'../index/index?questions='+JSON.stringify(questions)
				})
			}
		}
	}
</script>

<style>
</style>
